﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Result.aspx.cs" Inherits="NbSecurityAppManage.AntiFake.Result" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style>
        div, p, span {
            font-size:36px;
        }
        .pp div{
            margin:5px 0px;
        }
        /**/
    #demo {
        background: #fafafa;
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.2);
        -moz-border-radius: 4px;
        border-radius: 4px;
        color: rgba(0,0,0, 0.8);
        text-shadow: 0 1px 0 #fff;
    }
    #UlData li {
        text-align: left;
        list-style-type: none;
        border-bottom: 1px solid rgb(128, 128, 128);
        white-space: nowrap;
    }
        .triangle-up {
        width: 0;
        height: 0;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom: 20px solid rgb(128, 128, 128);
    }
    .triangle-down {
        width: 0;
        height: 0;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 20px solid rgb(128, 128, 128);
        cursor: pointer;
    }

    </style>
    
    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body style="background-color:#ffffff;" id="body_1" runat="server">
    <form runat="server">
         <div style="width:100%;">
                 <div class="row" id="head" style="width:100%;">
               
                  <div id="div_imgzj" runat="server" class="" style=" background-color: #D71F17; border-radius: 2px; text-align: center; padding-top: 10px;">
                    <img id="img_zj" runat="server" src="/imgs/fw/real2.png" style="width: 45%;" /><br />
                </div>
          </div>
            </div>
            <div style="margin:0px 50px;">
            <div class="row" style="background-color:white; border-radius:2px; text-align:left; ">
                 <asp:Label ID="labelResult" runat="server" style="letter-spacing:3px;color:#333333;"></asp:Label>
            </div>

            <div id="demo" class="row pp" style="text-align:center;margin:50px 0;">
                    <div class="row">
                        <div class="col-xs-1">
                        </div>
                        <div class="col-xs-4">
                            <div style="" class="center-block">防伪验证码:</div>
                        </div>
                        <div class="col-xs-4" style="margin-left:-30px">
                            <div id="div_code" class="center-block" runat="server"></div>
                        </div>
                        <div class="col-xs-3">
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <img src="/imgs/fw/ly.jpg" style="width:50%" /> 
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-1"></div>
                        <div class="col-xs-4">
                            品&nbsp;&nbsp;牌&nbsp;&nbsp;名&nbsp;&nbsp;称:
                        </div>
                        <div  id="div_prodoctName"  class="col-xs-4"  style="margin-left:-30px" runat="server"></div>
                        <div class="col-xs-3"></div>
                    </div>
                    <div class="row">
                        <div class="col-xs-1"></div>
                        <div class="col-xs-4">
                            查&nbsp;&nbsp;询&nbsp;&nbsp;次&nbsp;&nbsp;数:
                        </div>
                        <div  id="div_queryCount"  class="col-xs-4"  style="margin-left:-30px;color:red;"  runat="server"></div>
                        <div class="col-xs-3"></div>
                    </div>
                    <div class="row">
                        <div class="col-xs-1"></div>
                        <div class="col-xs-4">
                            首次查询时间:
                        </div>
                        <div id="div_queryTime" class="col-xs-6"  style="margin-left:-30px" runat="server"></div>
                        <div class="col-xs-1"></div>
                    </div>
                </div>

            <div class="row">
               <div class="col-xs-6">
                    查询记录
                </div>
                <div class="col-xs-3">
                    
                </div>
                <div class="col-xs-3">
                    <span id="flexible" class="triangle-up" style="position:relative; top:15px; float:right;" title="收起"">    <!--向下的三角--> </span>

                </div>
            </div>
            <div class="row-fluid" id="result">
            
            </div>

        </div>
 
      <div class="col-xs-12" style="text-align:center;font-size:30px;margin-top:10px">
          <p style="margin-bottom:2px;font-size:30px;" >中国品牌商品365验证中心</p>
         <%-- <p style="font-size:30px;">Copyright 2005-2020 All Reserved</p>--%>
      </div>
    </form>
</body>
</html>

    <script src="/bootstrap/js/bootstrap.min.js"></script>
    <script src="/bootstrap/js/jquery.min.js"></script>
    <script type="text/javascript">
        var getUrlParam = function (name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]); return null;
        };
        $(function () {
            $('#flexible').click(function () {
               
                getlog();
            });
             
        })

        function getlog() {
            

            var uls = $('.ul_li');
            uls.html("");
            var html = "<table style=\"width:90%;\">";
            var fwser = $('#div_code').text();
           
            $.ajax({
                type: "post",
                url: "/Ashx/Handler2.ashx?oper=getlog&type=1&code=" + fwser,

                success: function (data) {

                    $.each(JSON.parse(data), function (i, item) {
                        html += "<tr><td style=\"width:40%;\">" + item.QueryTime + "</td> <td  style=\"width:40%;\">" + item.QueryValue + "</td></tr>";
                    });
                    
                    $('#result').html(html + "</table>");

                }
            })
        }
        //伸缩
        function onFlexible(obj) {
            if ($(obj).attr("title") == "收起") {
                $(obj).attr("title", "展开").attr("class", "triangle-down");
                $("#UlData").slideToggle();
            }
            else {
                $(obj).attr("title", "收起").attr("class", "triangle-up");
                $("#UlData").slideToggle();
            }
        }
    </script>